package kassiopeia.commons.io;

import kassiopeia.commons.AgentStatus;
import kassiopeia.commons.TaskSummary;
import kassiopeia.commons.VMSummary;
import org.apache.commons.lang.builder.ToStringBuilder;

public class Ping extends Message {

    private static final long serialVersionUID = 8305067880522681235L;

    private AgentStatus agentStatus;

    private TaskSummary taskSummary;

    private VMSummary vmSummary;

    private String jmxUrl;
    private String httpUrl;

    public Ping(String sourceId) {
        super(sourceId);
    }

    public AgentStatus getAgentStatus() {
        return agentStatus;
    }

    public void setAgentStatus(AgentStatus agentStatus) {
        this.agentStatus = agentStatus;
    }

    public TaskSummary getTaskSummary() {
        return taskSummary;
    }

    public void setTaskSummary(TaskSummary taskSummary) {
        this.taskSummary = taskSummary;
    }

    public VMSummary getVmSummary() {
        return vmSummary;
    }

    public void setVmSummary(VMSummary vmSummary) {
        this.vmSummary = vmSummary;
    }

    public String getJmxUrl() {
        return jmxUrl;
    }

    public void setJmxUrl(String jmxUrl) {
        this.jmxUrl = jmxUrl;
    }

    public String getHttpUrl() {
        return httpUrl;
    }

    public void setHttpUrl(String httpUrl) {
        this.httpUrl = httpUrl;
    }

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }
}
